package com.sptpc.demo.controller.requests;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.time.LocalDate;

@Getter
@Setter
@ToString
public class SearchOrderRequest {

    // 查询相关参数，可以为空
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate startDate;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate endDate;

    private Integer state;

    // 分页相关参数
    @NotNull
    private Integer page;
    @NotNull
    private Integer size;
}